<!DOCTYPE html>
<html lang="sr">
<head>
	<?php echo $this->Html->charset(); ?>
	<title><?= @$Settings->name ?><?= empty($title_for_layout) ? '' : ' &raquo; ' . $title_for_layout; ?></title>
	<?php
	    // meta
		echo $this->Html->meta('icon');
        echo $this->Html->meta('keywords',    @$Settings->keywords);
        echo $this->Html->meta('description', @$Settings->description);
        
        // view-meta
        echo $this->fetch('meta');

        // styles
		echo $this->Html->css('style.min');
        
        // view-styles
        echo $this->fetch('css');
        
        // scripts
        echo $this->Html->script('jquery-2.0.0.min');
        echo $this->Html->script('google-analytics');
        echo $this->Html->script('script.min');

        // view-scripts
		echo $this->fetch('script');
	?>
</head>
<body>
    <header>
        <a id="logo" href="/">
            <?= $this->Html->image('mrvica_logo.png', array(
                'width'  => 87,
                'height' => 87
            )) ?>
            Poslastičarnica Mrvica
        </a>
        <div id="menu"><?= $this->element('menu') ?></div>
        <div
            class ="fb-like"
            data-href ="http://www.facebook.com/mrvica.kolaci"
            data-send ="false"
            data-layout ="button_count"
            data-width ="450"
            data-show-faces ="false">
        </div>
    </header>
    
    <section id="main"><?= $this->fetch('content') ?></section>
    
    <footer>
        <p class="android"><a href="<?= PLAY_STORE_APP_URL ?>" target="_blank">
        <?= $this->Html->image('android.png?h=20') ?>
        Preuzmite Android aplikaciju</a></p>
        
        <p>&copy; <?= $Settings->name ?> &middot; 
        <?= $Settings->address ?> &middot; 
        <?= $Settings->phone ?> &middot; 
        <a href="/kontakt"><?= $Settings->email ?></a></p>
    </footer>
    <div id="fb-root"></div>
</body>
</html>
